import axios from "./http.js";
import _ from "lodash";

// 获取多个公司的平台列表
export function getAllCorporationsPlatformList(config) {
  let url = "/bs/platform/listByCorpIds";
  const opts = _.merge({}, config || {});
  return axios.get(url, opts);
}

// 获取BI系统的直播平台-用于增加直播间数据
export function getBiPlatformList(config) {
  let url = "/bi/platforms";
  const opts = _.merge({}, config || {});
  return axios.get(url, opts);
}

// 获取oss参数信息
export function getOssParam(config) {
  let url = "/bs/oss/upload_signature";
  const opts = _.merge({}, config || {});
  return axios.get(url, opts);
}
